package procilege.impl.formatter;

import procilege.compute.ExprFormatTraveller;
import procilege.compute.PlaceTypeMetadata;
import procilege.compute.PlaceType;
import procilege.lang.Substitution;

@PlaceTypeMetadata(type = Substitution.class)
public class SubstitutionFormatter implements PlaceType<ExprFormatTraveller> {

	public void visit(ExprFormatTraveller tr, Object place) {

		Substitution n = (Substitution) place;

		StringBuilder sb = tr.getBuilder();
		tr.setout(n.getLeft());
		sb.append('/');
		tr.setout(n.getRight());
	}
}